package cn.wolfcode.luowowo.flight.mapper;

import cn.wolfcode.luowowo.flight.query.FlightQueryObject;
import cn.wolfcode.luowowo.flight.template.FlightTemplate;

import java.util.List;

public interface FlightMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FlightTemplate record);

    FlightTemplate selectByPrimaryKey(Integer id);

    List<FlightTemplate> selectAll();

    int updateByPrimaryKey(FlightTemplate record);

    List<FlightTemplate> selectByHotTop20(FlightQueryObject qo);

    List<FlightTemplate> selectByInitialABCDE();

    List<FlightTemplate> selectByInitialFGHJ();

    List<FlightTemplate> selectByInitialKLMNP();

    List<FlightTemplate> selectByInitialQRSTW();

    List<FlightTemplate> selectByInitialXYZ();

    List<FlightTemplate> selectByPortAndTime(FlightQueryObject qo);
}